﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SubForm.Master" EnableEventValidation="false"
    AutoEventWireup="true" CodeBehind="DicItemManagement.aspx.cs" Inherits="PreContractWeb.Administration.DicItemManagement" %>

<%@ Register Src="../UserControl/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript">
        function ShowPage(id) {
            var arg = null;
            var top = (screen.height - 350) / 2;
            var left = (screen.width - 800) / 2;
            arg = window.showModalDialog('EditDicItemDetail.aspx?id=' + id, '', 'dialogHeight:400px;dialogWidth:800px;dialogTop:' + top + ';dialogLeft:' + left + ';center:Yes;scroll:no;hidden;resizable:no;status:no;');
            if (arg != null) {
                document.getElementById('<%=returnvalue.ClientID%>').value = arg[0];
            }
        }
    </script>
    <div id="divError" runat="server" visible="false">
    </div>
    <div id="divConnect" runat="server">
        <asp:ScriptManager ID="ProvinceScriptManager" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="ProvinceUpdatePanel" runat="server">
            <ContentTemplate>
                <div style="text-align: center">
                    <input id="returnvalue" type="hidden" name="returnvalue" runat="server" />
                    <table cellspacing="0" cellpadding="0" width="95%" border="0">
                        <tr>
                            <td style="width: 12%" valign="middle" align="left">
                                字典条目类型:<br />
                                DicItem Type:
                            </td>
                            <td valign="middle" align="left">
                                <asp:DropDownList ID="DicTypeDownList" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DicTypeDownList_SelectedIndexChanged">
                                    <asp:ListItem>合同类型</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td align="right">
                                <asp:Button ID="btnadd" runat="server" ToolTip="添加字典条目" Text="添加(Add)" CssClass="bgButton">
                                </asp:Button>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                <asp:GridView ID="gvdicitem" runat="server" Width="100%" PageSize="20" OnRowDataBound="gvdicitem_RowDataBound"
                                    DataKeyNames="DicItemID" AutoGenerateColumns="False">
                                    <PagerSettings Visible="False"></PagerSettings>
                                    <Columns>
                                        <asp:BoundField HtmlEncode="False" DataField="DicItemID" HeaderText="编号&lt;br/&gt;ID"
                                            Visible="false">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField HtmlEncode="False" DataField="DicTypeDesc" HeaderText="类型&lt;br/&gt;Type"
                                            Visible="false">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField HtmlEncode="False" DataField="DicItemValue" HeaderText="名称&lt;br/&gt;Name">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:BoundField HtmlEncode="False" DataField="DicItemDesc" HeaderText="描述&lt;br/&gt;Description">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:BoundField>
                                        <asp:CheckBoxField ReadOnly="True" DataField="IsEnabled" HeaderText="是否可用&lt;br/&gt;Active">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        </asp:CheckBoxField>
                                        <asp:TemplateField HeaderText="编辑&lt;br/&gt;Edit">
                                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                            <ItemTemplate>
                                                <asp:ImageButton ID="imgedit" runat="server" ImageUrl="../images/COMEDIT.GIF" ToolTip="编辑字典条目信息" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <RowStyle Height="20px" CssClass="table_row_1"></RowStyle>
                                    <SelectedRowStyle CssClass="SelectedRow"></SelectedRowStyle>
                                    <HeaderStyle CssClass="table_header"></HeaderStyle>
                                    <AlternatingRowStyle CssClass="table_row_2"></AlternatingRowStyle>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
